package com.mew.chess.core.game.qmcs.game.message;

import com.mew.chess.core.game.qmcs.game.common.QmcsUserBO;
import com.zebra.common.ZebraBaseMessage;
import io.netty.buffer.ByteBuf;
import lombok.*;


@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class PlayerEnterPushMessage extends ZebraBaseMessage<PlayerEnterPushMessage> {

    private QmcsUserBO enterPlayer;

    @Override
    public void write(ByteBuf b) {

        enterPlayer.write(b);
    }

    @Override
    public PlayerEnterPushMessage read(ByteBuf b) {
        return this;
    }
}
